// 菜单国际化配置

// element-plus国际化
import enLocale from "element-plus/lib/locale/lang/en";
import zhLocale from "element-plus/lib/locale/lang/zh-cn";

export const menusConfig = {
  zh: {
    message: {
      hshome: "首页",
      workDashboard: "工作台",
      workApproval: "审批中心",
      acceptanceManagement: "验收管理",
      arrivalAcceptance: "到货验收",
      concealedAcceptance: "隐蔽验收",
      materialAcceptance: "开工验收",
      completedAcceptance: "土建竣工验收",
      qualityAcceptance: "质量检查",
      qualityDetail: "质量检查详情",
      arrivalDetail: "到货验收详情",
      managePage: "管理页",
      projectManagement: "项目管理",
      projectInfo: "项目综合信息",
      projectList: "项目列表",
      projectKanban: "项目看板",
      projectDetail: "项目详情",
      processManagement: "进度管理",
      processMain: "主计划管理",
      processMonth: "月度计划管理",
      processFigure: "形象进度管理",
      figureDetail: "形象进度详情",
      mainDetail: "主进度详情",
      monthDetail: "月度进度详情",
      qualityManagement: "质量管理",
      qualityStandard: "质量标准",
      qualityPlan: "质量计划",
      qualityCheck: "质量检查",
      qualityReform: "质量整改",
      qualityReport: "质量报告",
      qualityStandardAdd: "添加质量标准",
      qualityPlanAdd: "添加质量计划",
      qualityCheckAdd: "添加质量检查",
      qualityReformAdd: "添加质量整改",
      qualityReportAdd: "添加质量上报",
      modifyManagement: "变更管理",
      modifyAdd: "添加变更",
      modifyEdit: "修改变更",
      modifyView: "查看变更",
      hssysManagement: "系统管理",
      bussinessManagement: "商户管理",
      bussinessList: "商户列表",
      bussinessInfo: "查看商户",
      bussinessEdit: "编辑商户",
      bussinessDel: "删除商户",
      contractManagement: "合同管理",
      resourceManagement: "资源管理",
      menuList: "菜单管理",
      roleList: "角色管理",
      userManagement: "用户管理",
      organizationManagement: "组织管理",
      reportCenter: "报表中心",
      expenseAnalyst: "费用分析",
      fundManagement: "基金管理",
      fileManagement: "文件管理",
      flowManagement: "流程管理",
      flowStart: "发起流程",
      flowDetail: "流程详情",
      hsBaseinfo: "基础信息",
      hsDict: "字典管理",
      hseditor: "编辑器",
      hserror: "错误页面",
      hsfourZeroFour: "404",
      hsfourZeroOne: "401",
      hscomponents: "组件",
      hsvideo: "视频组件",
      hsmap: "地图组件",
      hsdraggable: "拖拽组件",
      hssplitPane: "切割面板",
      hsbutton: "按钮组件",
      hscropping: "图片裁剪",
      hscountTo: "数字动画",
      hsselector: "选择器组件",
      hsflowChart: "流程图",
      hsseamless: "无缝滚动",
      hscontextmenu: "右键菜单",
      hsmenus: "多级菜单",
      hsmenu1: "菜单1",
      "hsmenu1-1": "菜单1-1",
      "hsmenu1-2": "菜单1-2",
      "hsmenu1-2-1": "菜单1-2-1",
      "hsmenu1-2-2": "菜单1-2-2",
      "hsmenu1-3": "菜单1-3",
      hsmenu2: "菜单2",
      permission: "权限管理",
      permissionPage: "页面权限",
      permissionButton: "按钮权限",
      externalLink: "外链",
      testRouter: "测试路由",
      testRouter1: "测试路由1",
      testRouter2: "测试路由2"
    }
  },
  en: {
    message: {
      hshome: "Home",
      workDashboard: "Work Dashboard",
      workApproval: "Work Approval",
      acceptanceManagement: "Acceptance Management",
      arrivalAcceptance: "Arrival Acceptance",
      concealedAcceptance: "Concealed Acceptance",
      materialAcceptance: "Material Acceptance",
      completedAcceptance: "Completed Acceptance",
      qualityAcceptance: "QualityAcceptance",
      arrivalDetail: "Arrival Detail",
      qualityDetail: "Quality Detail",
      managePage: "managePage",
      projectManagement: "Project Management",
      projectInfo: "Project Info",
      projectList: "Project List",
      projectKanban: "Project Kanban",
      projectDetail: "Project Detail",
      processManagement: "Process Management",
      processMain: "Process Main",
      processMonth: "Process Month",
      processFigure: "Process Figure",
      figureDetail: "Figure Detail",
      mainDetail: "Main Detail",
      monthDetail: "Month Detail",
      qualityManagement: "Quality Management",
      qualityStandard: "Quality Standard",
      qualityPlan: "Quality Plan",
      qualityCheck: "Quality Check",
      qualityReform: "Quality Reform",
      qualityReport: "Quality Report",
      qualityStandardAdd: "QualityStandardAdd",
      qualityPlanAdd: "QualityPlanAdd",
      qualityCheckAdd: "QualityCheckAdd",
      qualityReformAdd: "QualityReformAdd",
      qualityReportAdd: "QualityReportAdd",
      modifyManagement: "Modify Management",
      modifyAdd: "ModifyAdd",
      modifyEdit: "ModifyEdit",
      modifyView: "ModifyView",
      hssysManagement: "System Manage",
      bussinessManagement: "Bussiness Manage",
      bussinessList: "Bussiness List",
      bussinessInfo: "Bussiness Info",
      bussinessEdit: "Edit Bussiness",
      bussinessDel: "Delete Bussiness",
      contractManagement: "Contract Manage",
      resourceManagement: "Resource Management",
      menuList: "Menu List",
      roleList: "Role List",
      userManagement: "User Management",
      organizationManagement: "Organization Management",
      reportCenter: "Report Center",
      expenseAnalyst: "Expense Analyst",
      fundManagement: "Fund management",
      fileManagement: "File management",
      flowManagement: "Flow management",
      flowStart: "Flow Start",
      flowDetail: "Flow Detail",
      hsBaseinfo: "Base Info",
      hsDict: "Dict Manage",
      hseditor: "Editor",
      hserror: "Error Page",
      hsfourZeroFour: "404",
      hsfourZeroOne: "401",
      hscomponents: "Components",
      hsvideo: "Video Components",
      hsmap: "Map Components",
      hsdraggable: "Draggable Components",
      hssplitPane: "Split Pane",
      hsbutton: "Button Components",
      hscropping: "Picture Cropping",
      hscountTo: "Digital Animation",
      hsselector: "Selector Components",
      hsflowChart: "Flow Chart",
      hsseamless: "Seamless Scroll",
      hscontextmenu: "Context Menu",
      hsmenus: "MultiLevel Menu",
      hsmenu1: "Menu1",
      "hsmenu1-1": "Menu1-1",
      "hsmenu1-2": "Menu1-2",
      "hsmenu1-2-1": "Menu1-2-1",
      "hsmenu1-2-2": "Menu1-2-2",
      "hsmenu1-3": "Menu1-3",
      hsmenu2: "Menu2",
      permission: "Permission Manage",
      permissionPage: "Page Permission",
      permissionButton: "Button Permission",
      externalLink: "External Link",
      testRouter: "testRouter",
      testRouter1: "testRouter1",
      testRouter2: "testRouter2"
    }
  }
};

// 按钮配置
export const buttonConfig = {
  zh: {
    message: {
      profile: "个人中心",
      hsLoginOut: "退出系统",
      hsfullscreen: "全屏",
      hsexitfullscreen: "退出全屏",
      hsrefreshRoute: "刷新路由",
      hslogin: "登录",
      hsregister: "注册",
      hsadd: "新增",
      hsmark: "标记/取消",
      hssave: "保存",
      hssearch: "搜索",
      hsexpendAll: "全部展开",
      hscollapseAll: "全部折叠",
      hssystemSet: "系统设置",
      hsdelete: "删除"
    }
  },
  en: {
    message: {
      profile: "profile",
      hsLoginOut: "loginOut",
      hsfullscreen: "fullScreen",
      hsexitfullscreen: "exitFullscreen",
      hsrefreshRoute: "refreshRoute",
      hslogin: "login",
      hsregister: "register",
      hsadd: "Add",
      hsmark: "Mark/Cancel",
      hssave: "Save",
      hssearch: "Search",
      hsexpendAll: "Expand All",
      hscollapseAll: "Collapse All",
      hssystemSet: "System Set",
      hsdelete: "Delete"
    }
  }
};

// 配置
// export const xxxx = {
//   zh: {
//     message: {},
//   },
//   en: {
//     message: {},
//   },
// };

const localesList = [menusConfig, buttonConfig];

export const localesConfigs = {
  zh: {
    message: Object.assign({}, ...localesList.map(v => v.zh.message)),
    ...zhLocale
  },
  en: {
    message: Object.assign({}, ...localesList.map(v => v.en.message)),
    ...enLocale
  }
};
